package com.koron.car.web.applycar.bean.entity;

import com.koron.car.web.common.UpdateParameter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel("用车申请调度")
public class DriverSchedule implements Serializable, UpdateParameter {

    private static final long serialVersionUID = 706507490315668038L;

    @ApiModelProperty("id，主键")
    private String id;

    @ApiModelProperty("申请id")
    private String applyId;

    @ApiModelProperty("车辆id，w_cm_car.id")
    private String carId;

    @ApiModelProperty("车牌号，w_cm_car.lic_plate_num")
    private String licPlateNum;

    @ApiModelProperty("车辆品牌")
    private String brand;

    @ApiModelProperty("所属车队，w_cm_car.motorcade")
    private String motorcade;

    @ApiModelProperty("所属车队名称，w_cm_car.motorcade")
    private String motorcadeName;

    @ApiModelProperty("是否租赁车辆")
    private Boolean leaseCar;

    @ApiModelProperty("司机id,w_cm_driver.id")
    private String driverId;

    @ApiModelProperty("司机姓名,w_cm_driver.driver_name")
    private String driverName;

    @ApiModelProperty("驾驶员类型,w_cm_driver.driver_type,字典：兼职、专职")
    private String driverType;

    @ApiModelProperty("联系方式")
    private String phone;

    @ApiModelProperty("是否租赁司机")
    private Boolean leaseDriver;

    @ApiModelProperty("调度人id")
    private String schedulerId;

    @ApiModelProperty("调度人姓名")
    private String schedulerName;

    @ApiModelProperty("回车登记员id")
    private String archiveClerkId;

    @ApiModelProperty("回车登记员名称")
    private String archiveClerkName;

    @ApiModelProperty("上一单起始里程")
    private Double lastStartMileage;

    @ApiModelProperty("上一单结束里程")
    private Double lastEndMileage;

    @ApiModelProperty("调度开始时间")
    private Date startTime;

    @ApiModelProperty("调度结束时间")
    private Date endTime;

    @ApiModelProperty("实际开始时间")
    private Date factStartTime;

    @ApiModelProperty("实际结束时间")
    private Date factEndTime;

    @ApiModelProperty("起始里程，默认取w_cm_driver_record第一条数据的起始里程")
    private Double startMileage;

    @ApiModelProperty("结束里程，默认取w_cm_driver_record最后一条数据的结束里程")
    private Double endMileage;

    @ApiModelProperty(value = "创建人账号")
    private String createBy;

    @ApiModelProperty(value = "创建人姓名")
    private String createByName;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人账号")
    private String updateBy;

    @ApiModelProperty(value = "更新人姓名")
    private String updateByName;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
